package com.circle.rest.modular.sys.model;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 字典数据信息
 * </p>
 *
 * @author 赵航
 * @since 2019-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_dict_data")
@ApiModel(value = "DictData对象", description = "字典数据信息")
public class DictData implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "字典编号")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "字典标签")
    private String dictLable;

    @ApiModelProperty(value = "字典键值")
    private String dictValue;

    @ApiModelProperty(value = "字典组key")
    private String groupKey;

    @ApiModelProperty(value = "排序")
    private Integer num;

    @ApiModelProperty(value = "表单回显")
    private String formClass;

    @ApiModelProperty(value = "表格回显")
    private String tableClass;

    @ApiModelProperty(value = "默认（Y是 N否）")
    private String isDefault;

    @ApiModelProperty(value = "状态(1：启用  2：冻结 ）")
    private Integer status;

    @ApiModelProperty(value = "删除状态")
    @TableLogic
    private Integer deleteState;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最后更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "乐观锁")
    @Version
    private Integer version;


}
